#ifndef _MEMCACHE_MEM_CACHE_H_
#define _MEMCACHE_MEM_CACHE_H_

struct MemItem {
    MemItem* _lru_item;
    int _expire_time;

    char _data[0];
};

class MemCache {
public:
    MemItem *alloc(int size, int& type);
    void free(MemItem *it);
};

#endif
